cmake_minimum_required(VERSION 3.15)
project(rv32i_sc)

set(CMAKE_CXX_STANDARD 14)

set(SYSTEMC_HOME /opt/systemc)
link_directories(${SYSTEMC_HOME}/lib)
include_directories(${SYSTEMC_HOME}/include)

link_libraries(systemc)

set(SIM_DATA_PATH ${PROJECT_SOURCE_DIR}/sim_data/)

configure_file(${PROJECT_SOURCE_DIR}/src/config.h.in ${PROJECT_SOURCE_DIR}/src/config.h @ONLY)

aux_source_directory(src SOURCE_FILES)

add_executable(rv32i_sc ${SOURCE_FILES})